<?php
$this->breadcrumbs=array(
	'Widgets'=>array('index'),
);

if ($model->id)
{
    $this->breadcrumbs = CMap::mergeArray($this->breadcrumbs, array(
        $model->name=>array('update','id'=>$model->id),
        'Update',
    ));
}
else
{
    $this->breadcrumbs = CMap::mergeArray($this->breadcrumbs, array(
        'Create',
    ));
}
?>

<h1><?php echo $model->id ? 'Edit Widget definition '.$model->name : 'Create Widget definition';?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>